package com.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@SpringBootApplication
@RestController
public class HelloWorld {



    @GetMapping("/")
    public String hello() {
        return "1. Hello from Spring MVC and Tomcat, " + LocalDateTime.now();
    }
}
